package project.parser.ast.values;

import project.environments.StaticEnvClass;
import project.parser.ast.aux.Function;
import project.parser.ast.exps.FuncDec;
import project.parser.ast.types.Type;

public class FuncValue extends AbstractValue<FuncDec> implements Function {
	public FuncValue(FuncDec value) {
		super(value);
	}

	@Override
	public Type type() {
		return value.typecheck(new StaticEnvClass());
	}

	@Override
	public FuncDec asFunction() {
		return value;
	}
}
